#pragma once
#include "netdefine.h"

class ISession;
class INetThread
{
public:
	INetThread() {}
	virtual~INetThread() {}
	virtual bool Tick() = 0;
	virtual bool CloseSession(SESSIONID sessionId) = 0;
	virtual bool SendMessage(const char* data,const DATA_LENGTH_TYPE length,SESSIONID sessionId)=0;
	virtual void Broadcast(const char* data, const DATA_LENGTH_TYPE length) = 0;
	virtual ISession* GetSession(SESSIONID sessionId)=0;
	virtual bool Final() = 0;
private:

};